package o;

import androidx.annotation.VisibleForTesting;
import com.google.android.exoplayer2.source.ads.AdPlaybackState;
import o.abr.c;
import o.abr.e;

@VisibleForTesting(otherwise = 3)
public final class aje extends aif {
    private final AdPlaybackState ˏ;

    public aje(abr o_abr, AdPlaybackState adPlaybackState) {
        boolean z;
        boolean z2 = true;
        super(o_abr);
        if (o_abr.ˎ() == 1) {
            z = true;
        } else {
            z = false;
        }
        amm.ˏ(z);
        if (o_abr.ॱ() != 1) {
            z2 = false;
        }
        amm.ˏ(z2);
        this.ˏ = adPlaybackState;
    }

    public c ॱ(int i, c cVar, boolean z) {
        this.ॱ.ॱ(i, cVar, z);
        cVar.ˎ(cVar.ˊ, cVar.ˋ, cVar.ॱ, cVar.ˎ, cVar.ˊ(), this.ˏ);
        return cVar;
    }

    public e ˊ(int i, e eVar, boolean z, long j) {
        e ˊ = super.ˊ(i, eVar, z, j);
        if (ˊ.ʻ == -9223372036854775807L) {
            ˊ.ʻ = this.ˏ.ॱॱ;
        }
        return ˊ;
    }
}
